<template>
  <MainContent title="导入记录" back>
    <template #search-bar>
      <SearchBar inline>
        <template #normal>
          <el-form-item label="时间范围">
            <el-date-picker
              v-model="tableForm.status"
              type="datetimerange"
              start-placeholder="开始时间"
              end-placeholder="结束时间"
              :default-time="defaultTime2"
            />
          </el-form-item>
        </template>
      </SearchBar>
    </template>
  
    <LayoutTable
      ref="marketingModel"
      url="/flow/marketingJourneyInfoEntity/pageList"
      :setSearch="setSearch"
      disable-auto-height
      :param="tableForm"
    >
      <el-table-column
        prop="name"
        label="文档名称"
        min-width="150"
      ></el-table-column>

      <el-table-column
        prop="journeyStrategyNum"
        label="导入类型"
        min-width="100"
      ></el-table-column>

      <el-table-column
        prop="createUserName"
        label="数据条数"
        min-width="100"
      ></el-table-column>
      <el-table-column prop="createTime" label="导入时间" min-width="100">
        
      </el-table-column>
    </LayoutTable>
  </MainContent>
</template>
<script lang="ts" setup>
// import MarketingModelApi from "@/api/marketingModelApi.js";
// import { dateFormat } from "@/utils/filters";
const tableForm = ref({
  name: "",
  status: "",
});
const defaultTime2 = [
  new Date(2000, 1, 1, 12, 0, 0),
  new Date(2000, 2, 1, 8, 0, 0),
] // '12:00:00', '08:00:00'
const setSearch = ref(Number());
const marketingModel = ref();
const onSearch = () => {
  setSearch.value++;
};
</script>

<style lang="scss" scoped></style>
